<?php
//var_dump($this->avenant);
$avenant = $this->avenant;
$poste = $this->poste;
$title	 = $this->title;

?>
<div class='empl-full vert-olive' style='color: #fff; margin: 5px 0px'>
    <h3><?php echo $title ?></h3>
</div>

<div class='empl-border'>
    <div class="empl-left" style="width: 50%">
        <div class="empl-group">
            <div class="empl-full saumon">
                Poste : <span class='bolder'><?php echo $poste->libelle ?></span>
            </div>
            <div class="empl-full saumon">
                Collège : <span class='bolder'></span>
            </div>
            <div class="empl-full saumon">
                Niveau : <span class='bolder'><?php echo $poste->niveau ?></span>
            </div>
            <div class="empl-full saumon">
                Echelon : <span class='bolder'><?php echo $poste->echelon ?></span>
            </div>
        </div>
    </div>

    <div class="empl-right" style="width: 49%">
        <div class="empl-group">
            <div class="empl-full jaune">
                Contrat horaire hebdomadaire : <span class='bolder'><?php echo $avenant->hebdo ?> H</span>
            </div>
            <div class="empl-full jaune">
                Taux horaire : <span class='bolder'><?php echo $avenant->taux ?> €</span>
            </div>
            <div class="empl-full gris">
		<?php $debut	 = new RHX\Helper\RHDateTime($avenant->debut); ?>
                Début de l'Avenant : <span class='bolder'><?php echo $debut->date('d/m/Y'); ?></span>
            </div>
            <div class="empl-full gris">
		<?php
		$fin	 = ($avenant->fin == '0000-00-00') ? 'Indéterminé' : new RHX\Helper\RHDateTime($avenant->fin);
		?>
                Fin de l'Avenant : <span class='bolder'><?php echo (is_string($fin)) ? $fin : $fin->date('d/m/Y'); ?></span>
            </div>
        </div>
    </div>
</div>

<div class='empl-full vert-olive'>
    <span>&nbsp;</span>
    <button class="btn btn-success" style='float: right; margin: 3px 10px' onclick='$("#avenant-dialog").dialog("close");'>OK</button>
</div>

<style type='text/css'>
    .bolder{
        font-weight: bolder;
        color: #0000cc;
    }
</style>